package com.jinzhi.jzweb.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jinzhi.jzweb.dao.BookStockDao;
import com.jinzhi.jzweb.domain.BookStockDO;
import com.jinzhi.jzweb.service.BookStockService;
import com.jinzhi.common.base.CoreServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 库存书籍管理主表
 * </pre>
 * <small> 2021-04-08 09:00:19 | lance</small>
 */
@Service
public class BookStockServiceImpl extends CoreServiceImpl<BookStockDao, BookStockDO> implements BookStockService {

    @Autowired
    private BookStockDao bookStockDao;

    @Override
    public List<BookStockDO> list(Map map) {
        return bookStockDao.list(map);
    }

    @Override
    public Integer bookNum(Map map) {
        return bookStockDao.bookNum(map);
    }

    @Override
    public List<Map> listWarehouse(Map map) {
        return bookStockDao.listWarehouse(map);
    }

    @Override
    public Map integerSales(Map map) {
        return bookStockDao.integerSales(map);
    }

    @Override
    public Integer listStock(Map map) {
        return bookStockDao.listStock(map);
    }
}
